package bb.lanxing.model.json;

import bb.lanxing.util.JsonUtil;
import java.io.Serializable;
import org.json.JSONObject;

public class RankTypeBean implements Serializable {
    private int areaType;
    private int cityId;
    private int clubTimeType;
    private int rank;
    private int timeType;
    private String title;

    public RankTypeBean(JSONObject node) {
        setAreaType(JsonUtil.getIntegerValue("areaType", node));
        if (node.has("timeType")) {
            setTimeType(JsonUtil.getIntegerValue("timeType", node));
        }
        if (node.has("rankType")) {
            setClubTimeType(JsonUtil.getIntegerValue("rankType", node));
        }
        setTitle(JsonUtil.getStringValue("title", node));

        if (node.has("rank")) {
            setRank(JsonUtil.getIntegerValue("rank", node));
        }
        if (node.has("cityId")) {
            setCityId(JsonUtil.getIntegerValue("cityId", node));
        }
    }

    public void setCityId(int cityId) {
        this.cityId = cityId;
    }

    public int getCityId() {
        return this.cityId;
    }

    public int getClubTimeType() {
        return this.clubTimeType;
    }

    public void setClubTimeType(int clubTimeType) {
        this.clubTimeType = clubTimeType;
    }

    public void setRank(int rank) {
        this.rank = rank;
    }

    public int getRank() {
        return this.rank;
    }

    public int getAreaType() {
        return this.areaType;
    }

    public int getTimeType() {
        return this.timeType;
    }

    public String getTitle() {
        return this.title;
    }

    public void setAreaType(int areaType) {
        this.areaType = areaType;
    }

    public void setTimeType(int timeType) {
        this.timeType = timeType;
    }

    public void setTitle(String title) {
        this.title = title;
    }
}
